﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt;

    public class wf_maillist_send_Map : ClassMapping<wf_maillist_send>
    {
        public wf_maillist_send_Map()
        {
            //映射ID
            Id(x => x.id, map => map.Length(40));

            Property(x => x.is_valid);
            Property(x => x.create_date);

            Property(x => x.mail_body, map => map.Length(10000));
            Property(x => x.mail_date);
            Property(x => x.mail_date_plan);
            Property(x => x.mail_date_sended);
            Property(x => x.mail_title, map => map.Length(400));
            Property(x => x.to_user, map => map.Length(200));
            Property(x => x.to_user_cc, map => map.Length(4000));

            Table(wf_maillist_send.TableName);

            //不进行创建
            SchemaAction(NHibernate.Mapping.ByCode.SchemaAction.None);
        }
    }
}
